import request from "./request";

// 登录
export const login = (obj) => {
    console.log(obj);
    return request.post('/auth/login', {
      username: obj.username,
      password: obj.password
    })
  }
// 获取layout页面用户数据
export const getUser = () => {
    // console.log(obj);
    return request.get('/auth/currentUser')
  }